package com.lzh.java;

public class Student extends Person {
	
	String major;
	
	public Student() {
		super();
	}

	public Student(String major) {
		super();
		this.major = major;
	}
	
	public void study() {
		System.out.println("学习，专业是："+major);
	}
	//对父类中的方法进行了重写
	public void eat() {
		System.out.println("学生应该吃有营养的食物");
	}
	
	public String info() {
		return null;
	}
}
